home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 4
/
Amiga Tools 4.iso
/
tools
/
schulungen
/
drafuplus
/
help
/
english
/
dfu.doc
next >
Wrap
Text File
|
1996-02-02
|
4KB
|
124 lines
.DFU Fileformat description
===========================
Preface :
---------
The "By-Hand"-Creation of DRAFU-Memo-Files, which then later can loaded
by the main program, is actually possible.
In the following text it is explained how to do it.
General actions / Background :
------------------------------
All the data needed to display and memorize a function,
is stored by DRAFU in a special data-structure.
Not all of this data is needed to be saved later, to allow
a reconstruction of the described functions (e.g. no pointers
are needed).
In the following part the format of a typical ".dfu"-File is described.
After studying this description you should be able to create your own
Files with a Text-Editor.
Perhaps you need not doing this, because you may enter all functions
within DRAFU's "Function-Requester" and then later save it in a File,
but the knowledge about the format of those files will perhaps allow
you to convert older data - e.g. created by other programs - into
the format used by DRAFU.
Format of a DRAFU-Memo-File :
-----------------------------
At the beginning of the File you always find the string "DFU_V1",
at the end there's a string containing "ENDE" (which actually is the
german word for <end> or <finish>).
Note : Each ".dfu"-File MUST have the extension ".dfu".
Otherwise it will not work !!!
Entry-Name Entry-Type Entry's Meaning / Possible Content
---------- ---------- ----------------------------------
fm_FX Textstring Function itself (upto 255 chars)
(with partly-defined functions
(ASWD-Functions) only a name)
fm_StepSize Dec. Number Step-Size
fm_SminX Dec. Number left border for X-Values
fm_SmaxX Dec. Number right border for X-Values
fm_SminY Dec. Number left border for Y-Values
fm_SmaxY Dec. Number right border for Y-Values
fm_Status Integer at the moment :
Number
2 for "Draw" (1<<1)
4 for "Not Draw" (1<<2)
fm_Color Integer Number of draw-color
fm_SplitNum Integer at the moment : ALWAYS NULL !
fm_ExtFlag Integer at the moment :
Number
0 for "usual function" (FALSE)
1 for "ASWD-function" ( TRUE)
THE FOLLOWING ENTRIES ONLY EXIST, IF fm_ExtFlag IS SET TO 1 :
efm_FX1 Textstring 1st function (ASWD-part)
efm_FX2 Textstring 2nd function (ASWD-part)
efm_FX3 Textstring 3rd function (ASWD-part)
efm_rightbor1 Dec. Number right border for X-Values of efm_FX1
efm_rightbor2 Dec. Number right border for X-Values of efm_FX2
efm_rightbor3 Dec. Number right border for X-Values of efm_FX3
AFTER THESE ENTRIES MORE FUNCTION-ENTRIES MAY FOLLOW.
THE FORMAT IS THE SAME AS DESCRIBED ABOVE.
Format of a DRAFU-Memo-File : An example
----------------------------------------
Note : The file has to be an ASCII-File.
Lines are separated by a RETURN / LINEFEED as
usual.
Leading Spaces are not allowed (also not useful).
Files may be created with every Text-Editor.
Comments have been added later (NOT part of the file).
>>> Example File Begin
DRAFU
x^4 /* FIRST Function : f(x) = x^4 */
0.100000
-20.000000
20.000000
-20.000000
20.000000
4 /* Function will not be drawn. */
1 /* Color # 1 */
0 /* NULL */
0 /* No ASWD-Function.
x^3 /* SECOND Function : f(x) = x^3 */
0.100000
-20.000000
20.000000
-20.000000
20.000000
4 /* Function will not be drawn. */
1 /* Color # 1 */
0 /* NULL */
0 /* No ASWD-Function.
x^2 /* THIRD Function : f(x) = x^3 */
0.100000
-20.000000
20.000000
-20.000000
20.000000
4 /* Function will not be drawn. */
1 /* Color # 1 */
0 /* NULL */
0 /* No ASWD-Function.
ENDE
>>> Example File End